<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:mtsmda="http://mtsmda.com/facelets"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<title>Index</title>
	<meta charset="UTF-8" />
	<mtsmda:jsCss />
</h:head>
<h:body>


	<div>
		<h:form id="formCustomer">
			<h:commandButton action="#{Customer.getCustomersWS()}" value="GET">
				<f:ajax render="formCustomer" execute="formCustomer"></f:ajax>
			</h:commandButton>
			<h:dataTable value="#{Customer.customers}"
				rendered="#{Customer.customers != null}" var="customer">
				<h:column>
					<f:facet name="header"></f:facet>    				
      #{customer.organisationOrPerson}
   </h:column>
				<h:column>
					<f:facet name="header">Department</f:facet>
      #{customer.firstName}
   </h:column>
				<h:column>
					<f:facet name="header">Age</f:facet>
      #{customer.middleName}
   </h:column>
				<h:column>
					<f:facet name="header">Salary</f:facet>
      #{customer.lastName}
   </h:column>
			</h:dataTable>
		</h:form>
	</div>

</h:body>
</html>